package mq.service;

import org.springframework.jms.annotation.JmsListener;
import org.springframework.stereotype.Service;

@Service
public class DemoService {

    @JmsListener(destination = "boot_queue")
    public void handleMessage(String msg){
        System.out.println("处理消息:" + msg);
    }
}
